package nero.yncc.com.createart.activity;

import android.widget.ImageView;
import android.widget.TextView;

import org.xutils.view.annotation.ContentView;
import org.xutils.view.annotation.ViewInject;

import java.util.HashMap;

import nero.yncc.com.createart.R;
import nero.yncc.com.createart.base.BaseActivity;
import nero.yncc.com.createart.base.Constants;
import nero.yncc.com.createart.bean.BeanMessage;
import nero.yncc.com.createart.utils.HttpUtils;
import nero.yncc.com.createart.utils.ImageUtils;
import nero.yncc.com.createart.utils.TextUtil;

/**
 * Created by nero on 2017/7/11.
 */

@ContentView(R.layout.activity_aboutin)
public class ActivityMessageDetail extends BaseActivity {
    @ViewInject(R.id.tv_content)
    TextView tv_content;
    @ViewInject(R.id.iv_big)
    ImageView iv_big;
    @ViewInject(R.id.tv_title)
    TextView tv_title;

    BeanMessage beanMessage;

    @Override
    protected void initData() {
        super.initData();
        setTitleBarTitle("详情");
        beanMessage=(BeanMessage)getIntent().getSerializableExtra("message");
        tv_title.setText(TextUtil.getText(beanMessage.getTitle(),"暂无标题"));
        tv_content.setText(TextUtil.getText(beanMessage.getContent(),"暂无内容"));
        ImageUtils.BindImage(mContext,iv_big,Constants.IMAGE_HOST+ beanMessage.getThumb(),4);
    }

    @Override
    protected void getHttpData() {
        super.getHttpData();

    }
}
